﻿using System.ComponentModel.Composition;
using AppsGenerator.Models;
using DBBuilder.DBDataStructure;

namespace AppsGenerator.WebGenerators.WebControllerGenerator
{
    /// <summary>
    /// The algorithm for generating Delete method of controller with image
    /// </summary>
    [Export(typeof(DeleteControllerItemByImageAlgorithm))]
    public class DeleteControllerItemByImageAlgorithm : IDeleteControllerItemAlgorithm
    {
        /// <summary>
        /// The name of img attribute
        /// </summary>
        private string _imgAttr;

        /// <summary>
        /// The constructor with image
        /// </summary>
        public DeleteControllerItemByImageAlgorithm()
        {
            _imgAttr = GlobalVariables.ImageAttr;
        }

        /// <summary>
        /// The method to generate item contents of controller with image
        /// </summary>
        /// <param name="item">The item which extracted from template file</param>
        /// <param name="tbl">The datasource for generating</param>
        /// <returns></returns>
        public string GenerateContents(Item item, Table tbl)
        {
            return string.Empty;
        }
    }
}
